package com.cloud.control.service.core;

import java.sql.SQLException;
import java.util.TimerTask;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.cloud.control.service.utils.JDBCUtils;

/**这个任务Task是定时从远程DB加载全部的有效用户数据,作为验证对比用!**/
public class UsrValidationTask extends TimerTask {
	private static final Log log = LogFactory.getLog(UsrValidationTask.class);

	@Override
	public void run() {
		try {
			JDBCUtils.loadEncryptedUsers();
		} catch (SQLException e) {
			JDBCUtils.closeConnection();
			log.error("UsrValidationTask exception:"+e.getMessage());
		}

	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
